//-----------------------------------------------------------------------
// <copyright file="a_VoteLogService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_VoteLogService
    {
        #region a_VoteLog

        public static void Createa_VoteLog(a_VoteLog a_VoteLog)
        {            
            try
            {
                a_VoteLogDAO a_VoteLogDAO = new a_VoteLogDAO();
                a_VoteLogDAO.Createa_VoteLog(a_VoteLog);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_VoteLog(a_VoteLog a_VoteLog)
        {            
            try
            {
                a_VoteLogDAO a_VoteLogDAO = new a_VoteLogDAO();
                a_VoteLogDAO.Updatea_VoteLog(a_VoteLog);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_VoteLog(int vid)
        {            
            try
            {
                a_VoteLogDAO a_VoteLogDAO = new a_VoteLogDAO();
                a_VoteLogDAO.Deletea_VoteLog(vid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_VoteLog Geta_VoteLog(int vid)
        {            
            try
            {
                a_VoteLogDAO a_VoteLogDAO = new a_VoteLogDAO();
                return a_VoteLogDAO.Geta_VoteLog(vid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_VoteLogCollection Geta_VoteLogList(a_VoteLogColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_VoteLogDAO a_VoteLogDAO = new a_VoteLogDAO();
                return a_VoteLogDAO.Geta_VoteLogList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_VoteLogCollection Geta_VoteLogList(a_VoteLogColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_VoteLogDAO a_VoteLogDAO = new a_VoteLogDAO();
                return a_VoteLogDAO.Geta_VoteLogList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}